import request from '../http.js'
// 更新用户信息
export const updateUser = data => {
	return request({
			url: `/alipay/appletUser/updateUser`,
			method: 'POST',
			data
	})
}

// 上传图片配置
export const getHeadImgUploadConfig = data => {
	return request({
			url: `/cloud/getHeadImgUploadConfig`,
			method: 'GET',
			data
	})
}

// 发送验证码
export const sendsms = phoneNumber => {
	return request({
			url: `/sms/send/${phoneNumber}`,
			method: 'GET',
	})
}

// 修改绑定手机号
export const bindPhoneNumber = data => {
	return request({
			url: `/alipay/appletUser/bindPhoneNumber/${data.phoneNumber}/${data.code}`,
			method: 'GET',
	})
}

// 登录
export const Userlogin = data => {
	return request({
			url: `/alipay/appletUser/login`,
			method: 'POST',
			data
	})
}